import request from '@/utils/request'

export function getAll() {

  return request({
    url: `/staff/getAll`,
    method: 'get'
  })
}

export function upsert(id) {
    return request({
      url: `/staff/upsert`,
      method: 'post',
      data:id
    })
  }

  export function removed(data) {
    return request({
      url: `/staff/deleteByUserName?userName=`+data.username,
      method: 'delete',
      // data:id
    })
  }